/**
 * Project Name:dsrs-businessservice-domain
 * File Name:FileSpaceSettingCreateForm.java
 * Package Name:com.bwda.dsrs.businessservice.domain.form.filespacesetting;
 * Date:2019年4月28日
 * Copyright (c) 2019, 江苏保旺达软件有限公司 All Rights Reserved.
 *
 */
package com.bwda.dsrs.filecenter.domain.form.filespacesetting;

import java.math.BigDecimal;
import com.bwda.dsrs.base.util.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 文件空间配置
 *
 * @author liangjianyong
 * @date 2019/4/27
 */
@Data
@ApiModel(description = "文件空间配置")
public class FileSpaceSettingCreateForm {

	@ApiModelProperty(value = "用户编号")
	private String userCode;

	@ApiModelProperty(value = "用户编号List")
	private List<String> userCodeList;

	@ApiModelProperty(value = "总空间")
	@NotNull(message = "系统级空间分配不能为空")
	@Digits(integer =7,fraction = 2 ,message = "总空间应在1-2097152之间")
	private BigDecimal totalSize;

	@ApiModelProperty(value = "0全局1个人2组织3自定义组")
	private Integer userType;

	@ApiModelProperty(value = "单次最大上传")
	private BigDecimal maxUploadSize;

	@ApiModelProperty(value = "备注")
	@Size(max = 140,message = "备注长度应在0-140之间")
	private String remark;

	@ApiModelProperty(value = "状态 0:正常 1:启用")
	private Integer status;

}